package com.black.cat.seed.entity;


import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;
import javax.validation.constraints.*;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 承包台账
 *
 * @author blackcat
 * @since 2021-03-25
 */
@Data
@ApiModel(description = "承包台账")
public class ContractBill extends  BaseEntity  implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotNull()
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "序号")
    private Integer orderNo;

    @ApiModelProperty(value = "支公司名称")
    private String subCompanyName;

    @ApiModelProperty(value = "参保企业名称")
    private String companyName;

    @ApiModelProperty(value = "保单号")
    private String insuranceNo;

    @ApiModelProperty(value = "起保时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date startDate;

    @ApiModelProperty(value = "结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date endDate;

    @ApiModelProperty(value = "参保人数")
    private String insuranceCount;

    @ApiModelProperty(value = "保费（万元）")
    private String expense;

    @ApiModelProperty(value = "保额（万）")
    private String sumInsured;

    @ApiModelProperty(value = "所属行业")
    private String industry;

    @ApiModelProperty(value = "备注")
    private String remark;

}
